#ifndef WAITWIDGET_H
#define WAITWIDGET_H

#include <QWidget>
#include <QPoint>
#include <QtMath>
#include <QPainter>
#include <QLine>

#define EQUALNUM 16     //多少条线，也就是等分多少份的圆

namespace Ui {
class waitWidget;
}

class waitWidget : public QWidget
{
    Q_OBJECT

public:
     waitWidget(QWidget *parent = nullptr,int inCircle_r = 0,int outCircle_r = 0,int LineWidth = 0);
    ~waitWidget();

    QWidget * myWidget;
    void paintEvent(QPaintEvent *ev);

    QPoint * inCirclePoint;
    QPoint * outCirclePoint;
    int myOutCircle_r;
    int myInCircle_r;
    int myLineWidth;
    QPoint myInDrop[EQUALNUM];
    QPoint myOutDrop[EQUALNUM];
    QPainter * myPainter[EQUALNUM];
    QLine   * myLine[EQUALNUM];
    QTimer * LoopTimer =  NULL;
    bool CircleDropData(int inCircle_r,int outCircle_r, int equalNum,QPoint * inDrop,QPoint * outDrop);

private:
    Ui::waitWidget *ui;
public slots:
    void loopTimerOut(void);
};

#endif // WAITWIDGET_H
